package com.jnu.myaccount;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import org.w3c.dom.Text;

public class BillingDetails extends AppCompatActivity {
    private TextView moneyNumberView;
    private TextView moneyStyleView;
    private TextView moneyNameView;
    private TextView moneyDateView;
    private ImageView moneyImageView;
    private ImageView backView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_billing_details);
        getSupportActionBar().hide();

        moneyDateView=findViewById(R.id.money_date);
        moneyNameView=findViewById(R.id.money_name);
        moneyNumberView=findViewById(R.id.money_number);
        moneyStyleView=findViewById(R.id.money_style);
        moneyImageView=findViewById(R.id.money_image);
        backView=findViewById(R.id.back);
        Intent intent=getIntent();
        moneyStyleView.setText(intent.getStringExtra("moneyStyle"));
        moneyNameView.setText(intent.getStringExtra("moneyName"));
        moneyDateView.setText(intent.getStringExtra("moneyDate"));
        moneyNumberView.setText(intent.getStringExtra("moneyNumber"));
        moneyImageView.setImageResource(intent.getIntExtra("moneyImage",0));
        backView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}